package com.tjvib.adapter;

import static com.tjvib.Constants.METHOD_CENSUS;
import static com.tjvib.Constants.METHOD_DAMPING;
import static com.tjvib.Constants.METHOD_FFT;
import static com.tjvib.Constants.METHOD_HUMAN;
import static com.tjvib.Constants.METHOD_VSA;

import android.content.Context;
import android.content.Intent;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.tjvib.R;
import com.tjvib.bean.AnalysisMethodBean;
import com.tjvib.view.activity.CensusActivity;
import com.tjvib.view.activity.DampingActivity;
import com.tjvib.view.activity.FftActivity;
import com.tjvib.view.activity.ParamActivity;
import com.tjvib.view.activity.VsaActivity;

import java.util.List;

public class AnalysisMethodAdapter extends BaseQuickAdapter<AnalysisMethodBean, BaseViewHolder> {
    private Context context;

    public AnalysisMethodAdapter(int layoutResId, Context context) {
        super(layoutResId);
        this.context = context;
    }

    public AnalysisMethodAdapter(int layoutResId, @Nullable List<AnalysisMethodBean> data, Context context) {
        super(layoutResId, data);
        this.context = context;
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, AnalysisMethodBean analysisMethodBean) {
        baseViewHolder.setImageResource(R.id.item_anal_iv_pic, analysisMethodBean.getPic());
        baseViewHolder.setText(R.id.item_anal_tv_name, analysisMethodBean.getName());
    }
}
